package com.fh.shop.admin.biz.product;

import com.fh.shop.admin.common.DataTableResult;
import com.fh.shop.admin.common.ServerResponse;
import com.fh.shop.admin.param.product.ProductAddParam;
import com.fh.shop.admin.param.product.ProductQueryParam;
import com.fh.shop.admin.param.product.ProductUpdateParam;

public interface IProductService {
    ServerResponse addProduct(ProductAddParam productAddParam);

    DataTableResult findProductList(ProductQueryParam productQueryParam);

    ServerResponse deleteProduct(Long id,String root);

    ServerResponse deleteBatch(String ids, String root);

    ServerResponse findProduct(Long id);

    ServerResponse deleteImage(Long key, String root);

    ServerResponse updateProduct(ProductUpdateParam productUpdateParam, String root);

    ServerResponse updateState(Long id, Integer state, String flag);
}
